Logical circuits



June 11, 1963 R. @WILLIAMSON 3,093,751

` LoGcAL CIRCUITS Filed Aug. 14, 1959 5 Sheets-Sheet 1 F IG. 2

xa afm/5 02 June 1l, 1963 R. G. WILLIAMSON 3,093,751

LOGICAL CIRCUITS Filed Aug. 14, 1959 5 Sheets-Sheet 2 FIG. 3 Vca' CUM/245470,?

AMA/00E FIG. 3A

C455 A z/Pz/f INVENTOR.

June 11, 1963 R. G. WILLIAMSON LOGICAL CIRCUITS Filed Aug. 14, 195s 5 Sheets-Sheet 5 Arme/vir June 11, 1963 R. G. WILLIAMSON 3,093,751

LOGICAL CIRCUITS Filed Aug. 14, 1959 5 Sheets-Sheet 4 F IG. 5

'el l/ca 0 0 F|G.5A

INVENTOR. @555,97- a Mam/145m ENMQMSNN June 11, 1963 R. G. WILLIAMSON 3,093,751

LOGICAL CIRCUITS Filed Aug. 14, 1959 4 5 Sheets-Sheet 5 F IG. 6

/az /6/ Xn [xa asn/f 6 54' 0R /fffmvcf 0 60a 6 g 62a! yn 5 l 52 fxcwI/Vf 6 0R 625 NAA/00A 3 C i* gc Zan CAR/e Y F IG. 6A

/FFMf/vff A55 x Y C, f C2 1N VENTOR. Kaefer a w/z MM50/v Arm/CNN United States Patent l" 3,093,751 LOGICAL CIRCUITS Robert G. Williamson, Norwalk, Conn., assigner to Sperry Rand Corporation, New York, N.Y'., a corporation of Delaware Filed Aug. 14, 1959, Ser. No. 833,840`

1A Claim. (Cl. SQL-83.5)

This invention relates to the field of component circuitry for `data-processing devices and more particularly to logical circuits such as might be used in a high speed computer.

The invention provides logical circuits composed of modular resistor-transistor switches so arranged that interconnections of several such switches provide the desired output pattern in response to applied patterns of binary inputs. l

While the logical functions performed by this invention are, in general, broadly known` there are provided novel circuits for performing these functions using modular transistor-resistor switches which enable circuits employing a minimum number of such switches to perform the operations with great reliability while requiring little power `for their `operation and at minimum component cost.

Accordingly it is an object of this invention to provide improved circuits for performing logical functions.

It is a further object of this invention to provide improved, transistorized circuits for providing the desired logical result in response to applied patterns of binary inputs. i i

It is a still further object of this invention to provide logical circuits composed of similar modular transistor and resistor switches.

It is a `further object of this invention to provide a multilevel transistor switch having a plurality of resistance coupled base inputs adapted to be used in logical circuits.

Still other and further objects and advantages of this invention will be apparent from the specification.

r[The features of novelty which are believed to be characteristic of this invention are set `forth with particularity in the appended claim. The invention itself,` however, both as to its fundamental principles and its particular embodiments will best be understood by reference to the specification and accompanying' drawings in which:

TIG. 1` is a schematic diagram of a transistor-resistor switch. i

FIG. 2 is a schematic diagram of an Exclusive-OR circuit. Y

FIG. 2a is a truth table for the circuit shown in FIG. 2.

FIG. 3 is a schematic diagram of a comparator circuit.

FIG. 3a is a truth table for the circuit shown in FIG. 3.

FIG. 4a is a block diagram of one embodiment of a Parity Check circuit constructed in accordance with this invention.

FIG. 4b is a block diagram of a second embodiment of such a Pari-ty Check circuit. i

FIG. 5 is a schematic diagram of a Full Adder.

FIG. 5a is a truth table for the circuit shown in FIG. 5

FIG. 6s is a block diagram of a Subtractor circuit.

FIG. 6a is a truth table for the circuit of FIG. 6.

Briefly stated, in accordance with the invention a basic modular ltransistor-resistor switch is provided, having circuit values chosen so that at least a predetermined number of coincident inputs are required to change the output condition thereof. The switch is constructed so as to provide an output equivalent to the `complement of a multi-level AND gate.

Further, in accordance with the invention logical circuits are provided composed of several of these modular 3,093,751 Patented June 11, 1963 ICC 2 transistor-resistor switches interconnected so that the state o f one or more output terminals of the circuit c or'- rectly represents the logical function intended to be performed byit.

` Referring now to FIG. 1, a transistor-resistor switch is shown using a p-n-p transistor 10 having a base 11, emitter 12 and collector 13. An n-p-n transistor could be used instead with appropriate reversalof power supply polarities. Transistor 10is connected in the grounded emitter, base input` mode, as is shown, with potential source Vb applying a positive biasl to b ase 11 and potential source Vg applying a negative bias to collector 13. Identical input resistors R1 which might, for example, be connected to other similar switches or to any compatible source, are connected in parallel to one another and in series with transistor base 11. Resistors R1, and potential sourceVb are chosen so that signals must be present on m of the n inputs to change the st ate yof kconductivity of transistor 10.

If transistor 10` is normally non-conducting, the potential at output terminal 14 is essentially that of Vc. When transistor 10 is made conductive by suicient inputs to base 11, the potential at terminal 1,4 changes to substantially that of ground. In the embodiment shown, where Vb is positive and Vc is negative, transistor 10 is made conductive by a coincident plurality of negative going inputs, hence performing as an AND gate. Further, since in response to such coincident plurality of negative inputs, a change in the. positive direction, i.e. from Vc to ground, is produced at terminal 14, the output represents the complement of the AND function, i.e., the NOT-AND or NAND function.

It should also be noted that when the transistor is used in the grounded emitter-base input mode, as shown, it can be thought of as a voltage discrimination device. That is to say, with this coniiguration the base turn oir`on voltage differential is very small thereby permitting reliable operation over a wide range of power supply, resistor and transistor characteristics. Hence, it is possible to use the switch shown in FIG. l as a multiple-level NAND circuit, i.e., one which will respond to any m of n possible inputs to change its output state, without requiring precisely controlled and constant power supplies, resistors and/or tube characteristics as have previous devices. Where m n such device is called a NANDOR switch and has particular value in logic circuits. For example consider a NANDOR switch with 3 inputs, the circuit values being chosen so that any 2 inputs produce an inverted output. The Boolean expression describing this action is the inverted carry function of a binary adder Referring now to FIG.` 2, two transistor-resistor switches are shown interconnected so as to perform an EXclusive-OR logical function, i.e. an output is to be provided if, and -only `if the two inputs are unalike. This function may be described by the following Boolean algebraic notation:

sistor switch 20h also havingl emitter 22]; `and collector 2317 is similarly connected in the grounded emitter, base input mode. The bases 21a and 2lb are respectively connected to bias vsources Vm and Vbb through resistors R2 and R4 as is shown. Collectors 23a and 2317 are respectively connected to bias sources Vc, and Vcb through resistors R3 and R5. Y

In the embodiment shown in FIG. 2 bias sources Vb and Vc and resistors R1-R5 are chosen so that transistor switch 20a is normally non-conductive and will be made conductive only by the coincident application of two or more signals of achosen polarity to base 21a, an-d so that transistor switch 20b is normally non-conductive and will be made conductive by the application of one or more input signals of a chosen polarity to base 2lb. In the non-conductive state output terminaly 24a of transistor switch 20a is substantially at potential Vm, and output terminal 24b of transistor switch 2Gb is substantially at potential Vcb. base 21a over a pairA of parallel resistors R1 which are each equal to the other resistors similarly marked.

.Transistors 20a and 20h are selected in this embodiment, 'so that the output at terminals 24a or 24b in the nonconductive state of switches 20a and 20b are respectively equal to any one 'input to bases 21a and 2lb. Hence, output terminal 24b effectively provides two inputs to base 21a since the coupling therebetween is .provided by a pair of parallel resistors R1 each equal to other resistors R1. `The same result could be achieved by re- [placing that pair of parallel resistors with a single resistor of the value R1 /2. Assuming that the circuit values are chosen so that in the nonconducting state of switches 20a and 20b outputs 24a and 24b are negative, rising to ground when the conductivity state changes and that the switching inputs must be negative, then the circuit of FIG. 2 performs the following operations:

When neither inputterminal Anor input terminal B receives a negative signal then switch 20b is nonconductive. Output 24b is negative and two negative inputs are applied to base 21a. As described above, switch 20a is conductive and output 24a is substantially at ground. If ground be chosen to represent a binary zero, and a negative going signal a binary one, then condition I of Table 2a is satisfied.

If one of terminals A or B receives a negative going signal, that signal is applied to bases 21a and 2lb of switches 20a and 20h respectively. Switch 2'0b, as -described above, is switched into conductivity by this single input, and output terminal 24b rises to ground. Therefore, base 21a will receive only one negative going signal, the two signals from terminal 24b being absent, and switch 20a 4becomes nonconductive. In this case output terminal 24a becomes negative indicating a binary one. Since, if a signal representing a binary one is present at either of terminals A or B, there will be a binary one at output 24a, conditions II and III of Table'Za are satisfied.

If negative going signals are coincidently applied to terminals A and B switch 20b is again made conductive raising output 24b to ground and removing two negative inputs to base 21a. However, the two negative signals at A and B, also applied to base 21a, are alone sufficient to make switch 20a conductive, raising the potential level of output 24a to ground. Since, if signals representing a binary one are applied to both Vinput terminals A and B, there will be a binary zero at terminal 24b, condition IV of Table 2a is satisfied.

Hence, the circuit of FIG. 2 will perform an Exclusive- AOR logical function,`i.e., providing an output when and only when one of two input terminals receives a signal. In connection with the description of FIG. 6 below it will be important to remember that there will be an output representing a binary one at terminal 24b only when each input to terminals A and B represent binary zeros.

It should be noted that the Exclusive-OR output is the complement of a Comparator circuit, a Comparator cir- Lead 25 connects output terminal 24b to 4 cuit being defined as one which will provide an output only if neither or both of two input signals are present. This function may be described 'by the following Boolean algebraic notation:

or may be expressed in the form of a truth table, as is shown in FIG. 3a. If the output of terminal 24a of FIG. 2 were inverted, or if an alternating notation were used, i.e., negative signals at A and/or B=binary one, ground :binary zero; negative signals at terminal 24a=binary zero, positive signals=binary one, then the circuit of FIG. 2 could be used as a Comparator.

A preferred circuit for performing that logical operation, i.e., T(a1b)=ab{ab, is shown in FIG. 3 and consists of two suitably interconnected transistor-resistor switches 30a and 30h. Each of these switches, having respectively bases 31a and 3111, emitters 32a and 32b, and collectors 33a and 33h, is connected in the grounded emitter, base input mode. Bias sources V1,a and Vbb are respectively connected to bases 31a and 31b by associated resistors R2 and R1. Bias sources Vea and Vcb are respectively connected to collectors 33a and 3311 through associated resistors R3 and R5. l In the embodiment shown in FIG. 3, bias sources Vb and Vc and resistors R1-R5 are chosen so that transistor switch 30a is normally nonconductive and will be made conductive only by the coincident application of three or more signals of a chosen polarity to base 31a, and so that transistor switch 30b is normally nonconductive and will be 'made conductive only by the coincident application of two input signals of said chosen polarity to base 31b.

In the nonconductive state output terminal 34a of transistor switch 30a is substantially at potential Vm, and output terminal 341, of transistor switch 30b is substantially at potential Vcb. VLead 35 connects output terminal 34b to base 31a over a pair of parallel resistors R1 which are each equal to the other resistors similarly marked.

Transistors 30a and 30b are selected, in this embodiment, so that the output at terminals 34a and/or 34b when switches 30a and/or 30b are nonconductive are respectively equal to any one input to bases 31a or 31b. Hence, output terminal 34b effectively provides two inputs to base 31a since the `coupling is provided by a pair of parallel resistors R1, each equal to other resistors R1. The same result could be achieved by replacing that pair of parallel resistors with a single resistor of the value R1 2.

Let it be assumed that the circuit values are chosen so that in the nonconducting state of switches 30a and 30b, outputs 34a and 34h yare negative, rising to ,ground when the conductivity state changes, and that the switching inputs to bases 31a and 31b must be negative.

Let 4it further be assumed that a signal at ground po tential represents a binary zero and that a signal at a negative potential represents a binary one.V Under these conditions, the circuit of FIG. 3 performs the following operations:

When a signal representing a binary zero is present at both of input terminals A and B (i.e. no binary one at either input terminal), transistor switch 30b remains nonconductive. The two effective inputs applied to base 31a of transistor switch 30a from output 34h are insufficient to change the conductivity state of switch 30a. Therefore, the potential at output terminal 34a will remain negative. Since, in' response to the coincident application of two binary zeros the circuit provides a binary one iat the output, condition I of the truth table of FIG. 3a is satisfied. Y

When a signal representing a binary one is applied to one of input terminals A or B, e.g., terminal A, and a signal representing a binary zero is applied to the other input terminal, then switch 30b again remains nonconductive since it is biased so as to require two coincident, negative-going base inputs to change its conductivity state. Consequently, base 31a of transistor switch 30a will receive two etective inputs from output terminal 3411 as well as the additional input from input terminal A. 'Iihese three inputs are sutlicient to change the conductivity state of switch 30a and the potential at output terminal 34a will rise to substantially ground level. Since,

in response -to the application` of a binary one at one input' terminal and a binary zero at the other input terminal, the output tenmiual provides a binary zero, conditions II,Y

and lil of the truth table of FIG; 3a are satisfied.

lf input signals representing a binary one are applied to both of'input terminals A and B coincidentally, 'then transistor switch 3011 is made conductive by the two inputs to base 31h and the potential at output terminal` 3411 rises to substantially ground level. The two negativegoing signals at terminals A and B are also applied to base Sla of transistor switch 30a but since the two eii'ective inputs from output terminal 34h of transistor switch 30h are no longer present, transistor switch 30a remains nonconductive. The potential level at output 34a ijs therefore negative. Since, in response to the application of coincident input signals representing a binary one at terminals A and B a signal is provided at output terminal 34a representing a binary one, condition IV of the truth table of FIG. 3a is satisfied.

It should be noted that conditions I-IV are equally satisfied if ground is considered to be a binary one and a negative signal is considered to be a binary zero.

The comparator of FIG. 3 and the ExclusiveOR circuit of FIG. 2, each essentially composed of combinations of switches such as that described in FIG. 1, may them,- selves be combined to perform important logical operation necessary in modern high speed electronic devices.

Referring now to FIG, 4a a parity check circuit is shown which employs three interconnected Exclusive-OR units4 such as that shown in FIG. 2, and a Comparator-l uni-t such as that shown in FIG. 3. A s is well known in the artt, patterns of ones land zeros may be selected to represent numerals and/or alphabetic characters so that, by the addition of a parity signal, either a one or a zero depending on the particular pattern involved, the total number of ones in every code unit is always odd or always even, as desired. One example of such a code, based on four signiiicant 'code positions plus a iicfgth parity check position, is as follows:

Parity symbol Binary number Arabic number In checking a code, such as is shown in the above table, each number, if correct, must have an odd total of ones.

The circuit of FIG. 4a checks lirst on the four signiiicant positions of each code by means of the` three EX- clusiveOR units. As will be seen there is an output from the last of these three units if and only if there is one or three binary ones. The output from this last Exclu` siveOR unit is applied as` one input to a Comparator unit which has as its other input the appropriate parity check symbol.

rThe odd check on the four significant positions is as follows, assuming a four position code, i.e., A, B, C, and D, and a fth parity check position E:

Signals in positions A and B, a negative signal repref senting a -binary one, a signal at ground level, a binary zero, are applied coincidentally to Exclusive-OR unit 40, Exclusive-OR units 40, 41, and 42 are each identical to the Exclusiver-OR unit shown in and described in connectionY with FIG. 2. Similarly signals at terminals C and D are coincidently applied to Exclusive-OR circuit 41. The outputs Vfrom units 40 and 41` are applied as two inputs to Exclusive-OR circuit 42.

As described above in connection with the descriptionV of FIG. 2, each of units 40, 41, and 42 will provide an output if, and only if, there is just one input thereto. Repbrased, we may say that each Exclusive-OR circuit` will provide an output only in response to an odd number ofV inputs. Accordingly, a signalV at the output terminal of unit 42 will only :be present when there is a signal applied at terminal, 42a and not at terminal 42j: or vice versa. Such ay pattern of signals is only possible if the signals applied to A, B, C, and D are as follows:

A, but not B, C, an'd D B, but not A, C, and D C, but not A, B, tand D. D, but not A, B. and C A, B, and C, but not D A, B, `and* D, but not C A, C, and D, but not B B, C, and D, but not A When no signal isapplied to any of terminals A-D, then no inputs are applied to either of terminals 42a or 42b and there is no output from Exclusive-OR circuit 42. When signals are present at all of terminals A-Dt` coincidently, again there will be no inputs at terminals 42u or 4211 and consequently no output from unit 42. If coincident signals'are applied to both input terminals oi either Exclusive-OR circuit 40 or Exclusive-OR circuit- 41 then the output from that circuit appearing` either at input terminal 42d or 42b will not be present. In the absence of signals at either of the other two input terminals, i.e., the input to Exclusive-OR circuit 4Q or 41 an output therefrom appearing at the other one of input terminals 42u or 42b will also not be present and again Exclusive-OR circuit 42 will produce no output. In short, then, it can b e seen thatan output from Exclusive-OR circuit 42 will be present when and only when there are input signals at an odd number of input terminals `at Af-D.

The` output from Exclusive-OR circuit 42 is applied to input terminal 43a of4 Comparator 43. Comparator 43 may be identical to the Comparator `shown in and `dpescribed in the reference to FIG. 3 alnave.y The other input at terminal 43h of Comparator 43 is provided by the parity check digit of the particular numeral being checked. If the numeral is one which, in its correct form, has an even number `or binary ones then the parity checkdigit will be a signal representing a binary one. If the binary number is one which inits correct form has an odd number of binary ones, then the parity check digit is a signal representing a binary zero. The input at terminal 43al is a binary one only when there are an odd number of binary one signals in the numeral check. If there are an even number of signals in the numeral check then the input at terminal 43a represents a binary zero. Since Comparator 43, as was describedabove, will produce an output only when both inputs are alike, i.e.,r both represent binary ones, or both represent binary zeros, there will be no output from that stage unless the parity check reveals an error.

If a number correctly has an odd total of ones then there will be no parity check digit applied to terminal 43vb but there will be an input signal applied to 43a andhence no o utput from Comparator `43. Similarly, if the number correctly has an even total of binary ones there will be a parity check digit signal present at terminal 43b but there will be nc signal atV 43a .and hence again no output from Comparator 43h. c It is only when a parity check symbol representing a binary one is present when the machine has read an odd number of binary ones in the significant portion of the code or when no parity check symbol, i.e. one representing 4a binary zero, is present where the machine has read an even number of binary ones in the significant pulse of the code that there is an output from Comparator 43.

Comparator 40 could, of course, be replaced by an additional Exclusive-OR unit, whereupon the circuit would provide 1a signal when the binary number is correct and none when it is incorrect. Other variations of this circuit so as' to provide for an even number parity check will 'be clear to those skilled in the art.

An alternative configuration of modular units for the parity check of a binary code number is shown in FG. 4b and comprises three Exclusive-OR units of a type shown and described in connection with FIG. 2 and one C'o-mparator unit of the type shown and described in connection with FIG. 3. Assuming that the binary number to be checked has live positions, four of which are signincant and one of which contains the parity check symbol and that a binary one is represented by a negative pulse and a 'binary zero by ground, then the circuit will operate as follows: v

Signals at two signicant positions of a binary digit, i.e., A `and B, are applied as inputs to Exclusive-OR unit 4S. The output Vfrom Exclusive-OR unit 45 is applied to ber of positions A-D. The other terminal 48b of Comparator 48 will receive a signal representing a binary one when and only when there should have been signals representing "a binary one Vat an even number of input terminals A-D. Consequently, as was the case with the circuit shown in FIG. 4a, the circuit of FIG. 4b will provide an output at output terminal 49 only if a binary check symbol when added to the total number of binary ones produces an even total of binary ones. The circuit of iFIG. 4b, however, will permit the check of a binary unit having an odd number of signiicant places, simply by input terminal 46a of Exclusive-OR unit 46. A third sigf nificant position of the binary digit being checked is applied to input 4Gb of Exclusive-OR unit 46. The output from Exclusive-OR unit 46 is applied to input terminal 47a of Exclusive-OR unit 47. |The last significant position of the binary digit being checked, i.e., position D is applied to input terminal 47b of Exclusive-OR unit 47. The output of Exclusive-OR unit 47 is applied to input terminal 48a of Comparator unit 48 and the parity check` symbol occupying the 5th position, i.e., position E of the binary number being checked is applied to input terminal 48b of Comparator unit 48. An output representing a binary one from Comparator unit 48 indicates an error in the digit being checked and the absence of a signal indicates that that digit has the correct number of binary ones therein. This is clear from the following considertations:

Each Exclusive-OR unit may be considered to be an odd indicator, i.e., producing :an output only when there is an odd number of binary one signals present at its two inputs. Viewed thusly, there will be an input at terminal 46a only where there are an odd number of inputs to Exclusive-OR unit 45. If there is a binary one signal at 46a there will be an output from Exclusive-OR unit 46 only if there is no signal present at position C. Consequently, an output from Exclusive-OR unit 46 applied to input terminal 47acould mean that there has been a binary one signal present at either position A or B, but not both, and not at position C. If there were no binary one signals at either of positions A or B or at both of positions Y A and B then there would be no binary one signal at input terminal 46a `and consequently there could be an output from Exclusive-OR unit 46 only if there were a binary one signal at position C. In either of these two cases it should be noted that there is an input applied to terminal 47a only if there has been an odd number of binary signals at terminal A, B, and/or C. Of course, the absence of an input signal Aat terminal 47a necessarily means that there have been binary one signals at an even number of positions.

Assuming that there is an input signal representing a binary one at terminal 47a, i.e., binary one signals at an odd number of positions A-C, then there will be an output Afrom Exclusive-OR unit 47 only if there is no binary one signal at position D so that an output from Exclusive- OR unit 47 applied to input terminal 48a again means that there has been a signal representing 'a binary one at an odd number of terminals of positions A-D. If there is no signal representing a binary one at input terminal 47a, i.e., there has been a signal representing a binary one -at `an even number of positions A-C then there will be an output from Exclusive-0R unit 47 only if there is a bithe addition ot further Exclusive-OR units whereas the circuit of FIG. 4a can operate only where the number of signiiicant places are even.

Referring now .to FIG. 5 wherein an adder is Shown having as elements thereof two switches of the type shown in FIG. 1, like numerals refer to parts common to the two iigures. Input terminals A and B might have applied thereto separate patterns of signals representing binary ones and binary zeros which are to be added, and terminal C might receive a -signal representing the binary carry Ifrom 'a previous ladder stage.

Transistor-resistor switches 50a and 50b, each having a base 51a and 51h, emitter 52a 'and 5.2b and a collector 53a and 531;` are each connected in the grounded emitter, base input mode, switch 50a having iiye parallel input paths and switch 50b having three parallel input paths. The fourth and ifth inputs to switch 50a are taken Ifrom output terminal 54h of switch 50b and are applied to base 51a through a pair of parallel resistors R1 each of which 'are equal .to each of the other input resistors R1. These two parallel resistors could, of course, be replaced by a single resistor having the value I-f output terminal 54a represents Ythe sum output of 'a binary adder and output terminal 54b represents the carry output thereof, then changes in the output condition of switches 50a and 50b must occur only in response to the Ifollowing conditions:

This may be expressed in the form of a truth table as is shown in FIG. 5a. As will become apparent, these conditions are exactly satis-tied by the circuit of FIG. 5.

Bias sources Vm, Vbc, Vca and Vd, and resistors R2-R5 are chosen so that transistor switches 50a and 50b are norm-'ally nonconductive, each having substantially Vc potential at their respective output terminals 54a and 54h. Switch 50a is a level-of-three NANDOR circuit, changing its output condition in response to at least three coincident negative inputs, and switch 50b is a level-oftwo NANDOR circuit, changing its output condition in response to at least two coincident negative inputs. Let it be assumed that a change in output condition at either of terminals 54a or 54b ind-icates a binary one thereat. In the absence of any signal at terminals A, B, and C, switches 50a and 50b stay nonconductive, and the potential lat outputsV 54a and `54h remain negative, due to the negative bias sources Vea' `and Vcb. Since, in response to signals representing a binary zero at each of input terminals A, B, and C, there is no change in condition at either the sum or carry output terminal, condition l of Truth Table 5a is satisfied.

When only one of input terminals A, B, and C receives a negative signal, e.g., terminal A, the single signal applied to base 51b is insuicient to make switch 50b` conductive, therefore output terminal 54b remains unchanged `and the two` negative inputs normally applied to base 51a of switch 50a from output 5417, remain. The signal at terminal A is also applied to base 51a, and consequently switch 50a receives a total of three negative inputs, a number suflicient to make it conductive causing a more positive signal to appear at its output.

Since, with fa signal representing a binary one applied to one of input terminals A, B, or C, the sum output 54a changes condition and the carry output 5412 does not, conditions II, III, and IV of the Truth Table 5a are satisiied.

When negative inputs are coincidently received at two of terminals A, B, and C, e.g., terminals A and B, then switch 50h, a level-of-two NANDOR switch, is made conductive changing the output potential at terminal `54h from the negative value Vcb to substantially ground. This change at terminal 54h removes the two negative inputs to base 51a so that level-ofthree NANDOR switch 50a is not made conductive, and its output remains unchanged even though the signals at terminals A and B werealso applied to base 51a.

Since, in response to the application of signals representing a binary one to two ot input terminals A, B, and C, there is no change of condition at sum output 54o but :there is a change of state vat carry output 54b, conditions V, VI, and VII of Truth Table a are satisfied.

Finally, when there are coincident negative `signal-s at each of terminals A, B, ,and C, NANDOR switch 50h is again made conductive, changing the condition of output `54h and removing the two negative inputs to NANDOR switch uA through lead 15b. However, switch 50a, being a level-o-f-three NANDOR circuit, the three signals :at terminals A, B, `and C are sufficient to make switch 50a conductive changing the condition of Output 54a.

Since, in response to the application of three coincident signals representing binary ones there is a change of state both `at sum output 54a and at carry output 54b, condition VIII of the above table is satisfied.

Referring now to lFIG. 6 and the Truth Table 6a, a circuit capable of performing the subtraction of two binary numbers and providing the correct differeIlC and carry from such operation is shown. The conditions of binary subtraction are shown in IFIG. 6a and the preferred circuit for `fulfilling these conditions consists: of two Exclusive-OR units 60` and 61 and a multilevel NANDOR switch 62 suitably interconnected. Exclusive- OR units 60 and 61 are of the type shown in and described in connection with FIG. 3. The NANDOR unit 62 is of the type shown Vin and `described in connection with FIG. l, its bias` levels and resistor values being chosen so that it will change its conductivity state in response to negative going input signals applied coincidently to any -two of its four input terminals 62a62d. Absent at least two such negative going inputs there will be la negative signal representing a binary one at carry output terminal 63 and in the presence of two or more such negative input signals there will be -a signal representing a binary zero at carry output terminal 63. Exclusive-OR units 60 and 61 provide a negative going signal representing a binary one at their respective outputs 60C land 61sl in response to the application of a sign-al representing a binary one at one of each pair of inputs y60u or 60b, and 61a or 61h. The output from Exclusive-OR circuit 61 appears at the dilerence output terminal 64. The two inputs to Exclusive-OR unit 60', YI, and Cn 1 may represent, respectively, the subtrahend and the carry, if any, from a previous subtraction. Output 60C of Exclusive-OR unit 60 is applied to input terminal `6112 of Exclusive-OR unit 61. The other input to Exclusive-OR unit 61 which might represent the minuend is provided from terminal Xn which, like terminals Yr,

and Cn 1, might be any compatible source. Terminal Xn is also connected to NANDOR unit 62 through input terminal 62a. Output terminal 60e of Exclusive-OR unit 60 is similarly connected to NANDOR unit 62 through input terminal 62b. `Output terminal 60d of Exclusive- OR unit 60 lrepresents an output taken from collector 24h of NANDOR OR switch -20b of FIG.. 2;. As will be recalled lfrom the description of that tigure, a signal representing a binary one is present at the output terminal if and only if there is no signal present at either of the two input terminals of the Exclusive-OR unit. Output terminal 60d of Exclusive-OR unit `60 is connected to NANDOR unit 62 through a pair of input terminals 62e and 62d, hence a single output at terminal 60d has the eiect of two outputs to NANDOR unit 62. The operation of the circuit is as follows:

Assuming that there are no signals present at any of terminals Xn, Y, CD4, there will be no output at terminal 60C and 61C thereby providing a binary zero at diierence output tenminal 64. There will be no signal applied to input terminal 62a or 62b of NANDOR unit 62 but there will be inputs at terminals 62C and 62d from output terminal 66d of Exclusive-OR unit 60. Consequently, since NANDOR unit 62 changes its output condition in response to two inputs thereto, the negative potential at carry output terminal 63 will rise to ground indicating the presence of a binary zero for the carry. Since, in response to the presence of a binary Zero at each of terminals Xn, Yn, and C 1, there is a binary zero at the dilerence output terminal and a binary zero at the carry output terminal, condition I of the truth table of FIG. 6a is satisfied.

Itthere is a binary one applied to terminal Xn and la binary zero applied to terminals Yn, Cn 1, then there will be no output at terminal 60C and hence no input at terminal 6lb. Since, however, there is `an input at terminal `61a of Exclusive-OR unit`61 there will be a binary one output at terminal 61C thereof which will appear as a binary one at the difference, output terminal 64. NANDOR unit `62 stil'lreceives two inputs from output terminal 60d 'of Exclusive-OR unit 66, in `addition to the further input at terminal 62a from terminal Xn and hence the carry output terminal 63` still provides ground potential representing -a binary zero. Since, in response to the presence of a binary one at the minuend position and a binary zero at both the subtrahend and carry positions, a binary yone is provided at he difference output terminal and la zero is provided at the carry output terminal, condition Il of the truth table of FIG. 6a is satisied.

If a signal is present at terminal Xn and either of terminals Yn or Cn 1 but not both, eg., Yn, then Exclusive- OR unit 60 will provide a binary one at output terminal 60C which will be applied to input terminal 61h of Exelusive-OR unit 61. Since there is also a signal present at input terminal 61a of unit 61, there will be no binary one present at output terminal 61C and hence there will be a binary Zero present at difference output terminal 64. The binary one signal lfrom output terminal 60C will be applied to input terminal 62b of NANDOR switch 62. The binary one signal at terminal Xn will also be applied to NANDOR unit 62 to input terminal 62a. There will be no binary one output from 60d of Exclusive-OR unit 60 but since binary one signals are present at two of the four inputs of NANDOR unit 62 a signal representing a binary zero -is still provided Iat carry output terminal `63. Since, in response to a binary one signal at the minuend terminal and a binary one at either the subtrahend -or carry terminal but not both, a binary zero is present at both the diierence output terminal and the carry output terminal, conditions III and lV `of the truth table of FIG. 6a are satisfied.

If there is no signal represent-ing a binary one present :at terminal Xn and a signal representing a binary one is present at either terminal Yn or 0 1 but not both, eg.,

11 Y Cn 1, then there will be a signal representing a binary one provided at output terminal 60e. of Exclusive-OR unit 60. This output signal is applied to input 61b of Exclusive-OR unit 61. Since there is no signal applied to input terminal 61a there will be a binary one provided at output terminal 61C thereof and hence a signal representing a vbinary one will be present at this output terminal 64. There will be no signal applied to input terminal 62a of NANDOR switch 62 and there will be no input applied to terminal 62C andy 62d of that unit since there will be no output present at output terminal 60d of Exclusive-OR unit 60. There will be 'a signal representing a binary one applied to input terminal 62h of NANDOR unit 62 but since two coincident input signals yare required to change its conductivity state the single input at terminal 62b is insufficient and a negative output indicating a binary one will be present at carry input terminal 63, Since, in response to the absence of a signal described in FIGS. 1-6 is there any need for additional interstage amplification, the basic transistor-resistor switch itself providing sufficient power amplification to drive connected stages. Further, any three or more terminal device providing suiiicient current and voltage amplification, as well as signal inversion such as other types of semiconductors, electron emission tubes, magnetic amplifiers or the like could `be substituted without departing from this invention.

representing a binary one at the minuend and the presence of such a signal at either the subtrahend or carry but not both, there is provided a signal representing a binary one ,at both the difference output terminal and the carry output terminal, conditions V and VI of the truth table of FIG. 6a are satisfied.

If there is no binary one present at terminal Xn and there is a signal representing a binary one present at both terminals Yn and C 1 coincidently, then there will be no binary one present at either of output terminals 60e or 60d of Exclusive-OR circuit 60. Consequently both input terminals 61a and 61b of Exclusive-OR unit 61 will have signals representing a binary zero coincidently 'applied thereto and the signal appearing at output termi- -nal 64 will be a binary zero. Further, Asince each of input terminals 62a-62d of NANDOR unit 62 receives signals representing ya binary zero, the output from unit 62 will remain negative and this negative signal, representing a binary one, will appear at carry output terminal 63. Since, in response to a binary zero signal at the minuend terminal and a binary one signal at both the subtrahend and carry terminals coincidently, there is provided a binary zero 'at the difference output terminal and a binary one `at the carry output terminal condition VII of the truth table of FIG. 6a is satisfied.

IIf a signal representing a binary one is present at each `of terminals Xn, Yn, and 1 coincidently, then Exclusive-OR unit 60 will provide a signal representing a binary zero at each of its output terminals 60C and 60d. 'Ilhe signal representing a binary zero appearing at output terminal 60e is applied to input terminal 61b of Exclusive- OR unit 61. Since the other input terminal 61a of EX- `elusive-OR unit 61 will receive a signal representing a binary one from Xn, the output from that unit will be a signal representing a binary one which signal will appear at this output terminal 64. The signals representing a binary zero appearing at output terminals 60C and 60d of Exclusive-OR unit 60 are also applied to input terminals 62b, 62e` and 62d of NANDOR unit 62. The signal representing a binary one applied to terminal Xn will also be applied to input terminal 62a of NANDOR unit 62. Since NANDOR unit 62 requires the coincident application of at least two signals representing a binary one to change its conductivity state, then the single negative going signal, i.e., the one applied to 62a is insufficient to remove the negative output of NANDOR unit 62 and consequently a negative going signal representing a binary one will appear at carry output terminal 63. Since, in response to the coincident application of signals representing a binary one at the minuend position the subtrahend position and the carry position, there is provided a signal representing a binary one at the difference output terminal and a signal representing a binary one at the Vcarry output terminal, condition VIII of the truth table of FIG. 6a is satisfied.

It should be notedthat in none of the logical circuitry While there has been shown and described in this application certain preferred embodiments of the invention and the best mode in which it is contemplated employing that invention, it should be understood that modifications and changes may be made without departing from the spirit and the scope of the invention as will be clear to those skilled in the art.

=I claim:

An exclusive or circuit comprising:

(a) a single pair of input terminals;

(b) a pair of switching circuits each including biasing means, an input line, and an output line;

(c) a pair of resistance networks;

(d) a first one of the networks comprising first and second resistances connected in parallel between the input line of a first switching circuit and respective first and second input terminals;

(e) the first switching circuit being adapted and biased, and the first and second resistances being chosen, so that there is produced on the first switching circuit output line- (l) a selected binary one signal level, when and only when a selected binary zero signal level is applied to both the first and second resistances,

('II) the said zero signal, when the said one signal is applied to one or more of the first and second resistances;

(f) a second one of the networks comprising third,

fourth, and fifth resistances connected in parallel between the input line of a second switching circuit and the first input terminal, second input terminal, and first switching circuit output line respectively;

(g) the series resistance provided by the fifth resistance between the second switching circuit input line and the first switching circuit output line being half that provided by either the third or fourth resistance between the second switching circuit input line and either of the input terminals, whereby any signal applied to the fifth resistance is equivalent to two such signals applied to the third and fourth resistances respectively;

(h) the second switching circuit being adapted and biased, and the third, fourth, and fifth resistances being chosen, so that there is produced on the second switching circuit output line- (il) the said Zero signal, when the said one signal is applied to both the third and fourth resistances or to the fifth resistance,

(111) the said one signal, when and only when the said zero signal is applied to at least one of the third and lfourth resistances and also to the fifth resistance; K

(i) whereby a Zero output from the second switch-ing circuit indicates either- (I) one inputs applied by both input terminals to the third and fourth resistances,

(II) or zero inputs applied by both input terminals to the first and second resistances, thereby causing a one input to be applied by the first switching circuit to the fifth resistance;

(j) and whereby a one output from the second switching circuit indicates a zero output applied by one of the input terminals to the third or fourth resistance, and a one input applied by the other of the input terminals to the first or second resistance,

thereby causing a zero input to be applied =by the first switching circuit to the fth resistance.

References Cited in the file of this patent UNITED STATES PATENTS `Oliwa July 30, 1957 Schreiner et al. June 3, 1958 Sands Aug. 5, 1958 Franck et al Oct. 2l, 1958 Garnkel et al Ian. 13, 1959 Steinman Aug. 25, 1959 Miehle Sept. 22, 1959 Richards Mar. 1, 1960 Maddox Sept. 27, 1960 14 FOREIGN PATENTS Great yBritain Ian. 9, 1957 OTHER REFERENCES Richards: Arithmetic Oper. in Digital Computers, D. Van Nostrand Co Inc., Princeton (1955 p. 117.

Hartree: `Calculating Instruments and Machines, University of Illinois Press, Urbana (1949), p. 98.

Wilkes: Automatic Digital Computers, John Wiley & Sons, New York (1956), pp. 233-35.

Millrnan et al.: Pulse and Digital Circuits, McGraw- Hill Book Co., 1956, p. 565. 

